﻿using System.Web.Mvc;
using System.Web.Routing;

namespace Sportsbook.Website.App_Start
{
    public class RouteConfig
    {
        public static void RegisterRoutes(RouteCollection routes)
        {
            //routes.MapRoute(
            //   name: "Leagues",
            //   url: "leagues/{sportId}/{filterType}",
            //   defaults: new { controller = "Leagues", action = "Index" }
            //);

            //routes.MapRoute(
            //    name: "Lines",
            //    url: "lines/{sportId}/{filterType}/{leagueId}",
            //    defaults: new { controller = "Lines", action = "Index"}
            //);

            //routes.MapRoute(
            // name: "BetSlip",
            // url: "bet-slip",
            // defaults: new { controller = "Tickets", action = "Index" }
            //);

            routes.MapRoute(
              name: "Templates",
              url: "Templates/{action}",
              defaults: new { controller = "Templates" }
            );

            routes.MapRoute(
                name: "Default1",
                url: "{controller}/{id}",
                defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional }
            );           
        }
    }
}